﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Microsoft.Practices.ServiceLocation;

namespace WorkStation.Frameworks.ServiceContainer
{
    /// <summary>
    /// * 服务容器提供接口
    /// </summary>
    public interface IServiceContainerProvider
    {
        /// <summary>
        /// * 服务容器配置
        /// </summary>
        ServiceContainerConfiguration Config { get; set; }

        /// <summary>
        /// * 初始化
        /// </summary>
        /// <param name="config">服务容器配置对象</param>
        void Init(ServiceContainerConfiguration config);

        /// <summary>
        /// * 获取ServiceLocator对象
        /// </summary>
        /// <returns></returns>
        IServiceLocator GetServiceContainer();
    }
}
